from django.urls import path
from .views import (
    index,
    news_tag, add_news_tag, edit_news_tag, del_news_tag,
    NewsPub, NewsList,
    upload_file, up_token
)

app_name = "admin"

urlpatterns = [
    path("", index, name="index"),
    path("news-tag/", news_tag, name="new_tag"),
    path("add-news-tag/", add_news_tag, name="add_news_tag"),
    path("edit-news-tag/", edit_news_tag, name="edit_news_tag"),
    path("del-news-tag/", del_news_tag, name="del_news_tag"),
    path("news-pub/", NewsPub.as_view(), name="news_pub"),
    path("news-list/", NewsList.as_view(), name="news_list"),
    path("upload-file/", upload_file, name="upload_file"),
    path("up-token/", up_token, name="up_token"),
]
